package com.yunban.project.template.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import net.lab1024.sa.base.ProjectConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: lijiajun
 * @date: 2024-11-06
 * @version: 1.0
 */
@Data
@Schema(description = "前端模板样式")
@TableName(ProjectConstants.TEMPLATE_TABLE_PREFIX + "style")
public class Style implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;
    @Schema(description = "父级ID")
    private Long pid;
    @Schema(description = "风格Code")
    private String code;
    @Schema(description = "风格名称")
    private String name;
    @TableLogic
    private boolean deleted = false;
}